$(function () {
 
    var searchURL = window.location.search;  
    searchURL = searchURL.substring(1, searchURL.length);  
    var targetArticleId = searchURL.split("=")[1];              
    $.get('http://localhost:5000/api/article/getarticlebyaid',{articleid: targetArticleId},function (data) {
        console.log(data)
            $("#section2").append("<h2>" +data.Title+" </h2><p> " + data.Content + "</p>");
            console.log(data.Title)
    
    })
 } )